<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "asr_keyword_end_classify".
 *
 * @property int $keyword_classify_end_id
 * @property string $name
 * @property int $audio_id
 * @property string $file_id
 */
class AsrKeywordEndClassify extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'asr_keyword_end_classify';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['audio_id'], 'integer'],
            [['name'], 'string', 'max' => 50],
            [['name'],'required','message'=>'不能为空'],
            [['file_id'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'keyword_classify_end_id' => 'Keyword Classify End ID',
            'name' => 'Name',
            'audio_id' => 'Audio ID',
            'file_id' => 'File ID',
        ];
    }
}
